package com.yuaihen.camera.utils;

import android.content.Context;

import com.yuaihen.camera.filters.AmaroFilter;
import com.yuaihen.camera.filters.AntiqueFilter;
import com.yuaihen.camera.filters.BaseFilter;
import com.yuaihen.camera.filters.BeautyFilter;
import com.yuaihen.camera.filters.BlackCatFilter;
import com.yuaihen.camera.filters.BlackFilter;
import com.yuaihen.camera.filters.BrannanFilter;
import com.yuaihen.camera.filters.BrooklynFilter;
import com.yuaihen.camera.filters.CalmFilter;
import com.yuaihen.camera.filters.CoolFilter;
import com.yuaihen.camera.filters.HealthyFilter;
import com.yuaihen.camera.filters.LatteFilter;
import com.yuaihen.camera.filters.OriginalFilter;
import com.yuaihen.camera.filters.RomanceFilter;
import com.yuaihen.camera.filters.SakuraFilter;
import com.yuaihen.camera.filters.SkinWhitenFilter;
import com.yuaihen.camera.filters.SunriseFilter;
import com.yuaihen.camera.filters.SunsetFilter;
import com.yuaihen.camera.filters.SweetsFilter;
import com.yuaihen.camera.filters.WarmFilter;
import com.yuaihen.camera.filters.WhiteCatFilter;

public class FilterFactory {

    public enum FilterType {
        SkinWhiten,
        BlackWhite,
        BlackCat,
        WhiteCat,
        Healthy,
        Romance,
        Original,
        Sunrise,
        Sunset,
        Sakura,
        Latte,
        Warm,
        Calm,
        Brooklyn,
        Cool,
        Sweets,
        Amaro,
        Antique,
        Brannan,
        Beauty
    }

    public static BaseFilter createFilter(Context c, FilterType filterType) {
        BaseFilter baseFilter = null;
        switch (filterType) {
            case Sakura:
                baseFilter = new SakuraFilter(c);
                break;
            case Sunset:
                baseFilter = new SunsetFilter(c);
                break;
            case Healthy:
                baseFilter = new HealthyFilter(c);
                break;
            case Romance:
                baseFilter = new RomanceFilter(c);
                break;
            case Sunrise:
                baseFilter = new SunriseFilter(c);
                break;
            case BlackCat:
                baseFilter = new BlackCatFilter(c);
                break;
            case Original:
                baseFilter = new OriginalFilter(c);
                break;
            case WhiteCat:
                baseFilter = new WhiteCatFilter(c);
                break;
            case BlackWhite:
                baseFilter = new BlackFilter(c);
                break;
            case SkinWhiten:
                baseFilter = new SkinWhitenFilter(c);
                break;
            case Calm:
                baseFilter = new CalmFilter(c);
                break;
            case Warm:
                baseFilter = new WarmFilter(c);
                break;
            case Latte:
                baseFilter = new LatteFilter(c);
                break;
            case Cool:
                baseFilter = new CoolFilter(c);
                break;
            case Sweets:
                baseFilter = new SweetsFilter(c);
                break;
            case Brooklyn:
                baseFilter = new BrooklynFilter(c);
                break;
            case Amaro:
                baseFilter = new AmaroFilter(c);
                break;
            case Antique:
                baseFilter = new AntiqueFilter(c);
                break;
            case Brannan:
                baseFilter = new BrannanFilter(c);
                break;
            case Beauty:
                baseFilter = new BeautyFilter(c);
                break;
            default:

        }

        return baseFilter;
    }


}
